﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 当主角碰到物体时加分
/// </summary>
public class TriggerReward :  Reward {

    private ObtainMusic om;
    private void Start()
    {
        om = PropManager.Instance.pvPlayer;
    }
    private void OnTriggerEnter(Collider other)
    {
        GetGrade();
        if (om != null) om.ChangeClip(om.musicGather[0]);
        Destroy(gameObject);
    }
}
